package com.hpm;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class HeightWeight {
	private String id;
	private Timestamp datetime;
	private float height;
	private float weight;
	private float bmi;
	private String result;
	private String station;
	private String name;
	private SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

	public HeightWeight() {

	}

	public HeightWeight(String id, Object datetime, float height, float weight,
			float bmi, String result, String name) {
		this.id = id;
		this.datetime = Timestamp.valueOf(datetime.toString());
		this.height = height;
		this.weight = weight;
		this.bmi = bmi;
		this.result = result;
		this.name = name;
	}

	public String getStation() {
		return station;
	}

	public void setStation(String station) {
		this.station = station;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDatetime() {
		return df.format(datetime);
	}
	
	public Timestamp getTimestamp() {
		return datetime;
	}

	public void setDatetime(Timestamp datetime) {
		this.datetime = datetime;
	}

	public float getHeight() {
		return height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	public float getBmi() {
		return bmi;
	}

	public void setBmi(float bmi) {
		this.bmi = bmi;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

}